//
//  LRFamousCollectionViewCell.m
//  本地生活圈
//
//  Created by admin on 15/8/13.
//  Copyright (c) 2015年 懒人. All rights reserved.
//

#import "LRFamousCollectionViewCell.h"
#import "UIImageView+WebCache.h"

@interface LRFamousCollectionViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIImageView *starIcon;
@property (weak, nonatomic) IBOutlet UILabel *introLabel;
@property (weak, nonatomic) IBOutlet UILabel *distanctLabel;

@end

@implementation LRFamousCollectionViewCell

- (void)awakeFromNib {
    // Initialization code
    self.backgroundColor = [UIColor whiteColor];
}

- (void)setList:(LRFamousListModel *)list
{
    _list = list;
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:list.cover]];
    self.titleLabel.text = list.name;
    self.introLabel.text = list.intro;
    self.distanctLabel.text = [NSString stringWithFormat:@"距离%d",list.distance];
}

@end
